import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    title:'首页'
  },
  mutations: {
    setTitle(state,title){
      state.title = title
    }
  },
  getters:{
    getTitle: state => {
      return state.title
    }
  },
  actions: {},
  modules: {}
});
